<?php

// +----------------------------------------------------------------------
// | 星数 [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020~2021 http://xsframe.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: guiHai <786824455@qq.com>
// +----------------------------------------------------------------------

namespace app\xs_test\controller;

use think\Exception;
use xsframe\base\WebBaseController;
use xsframe\util\StringUtil;

class Error extends WebBaseController
{

    /**
     * @param $method
     * @param $args
     * @return \think\response\View
     * @throws Exception
     */
    public function __call($method, $args)
    {
        if (StringUtil::strexists($this->controller, 'web.')) {
            throw new Exception($this->module . "/controller/" . str_replace(".", "/", $this->controller) . "/{$this->action} action not exists");
        }
        return $this->template('pc/error/400');
    }

}